package com.qqtop10.manager.model;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;

public class Category extends KeyEntity {
	private String name;

	private String full_name;

	private Integer parentId;

	private String parentUuid;

	private String brands;

	private String attributes;

	private Integer level_type;

	private Boolean isdeleted;

	private Date createtime;

	private String creator;

	private Date updatetime;

	private String mender;
	
	
	private String icon;
	
	
	public String geticon() {
		return icon;
	}
	
	public void seticon(String icon) {
		this.icon = icon;
	}

	public String getName() {
		return name;
	}

	public String getName2() throws UnsupportedEncodingException {
		return URLEncoder.encode(name, "UTF8");
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getFull_name() {
		return full_name;
	}

	public void setFull_name(String full_name) {
		this.full_name = full_name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getParentUuid() {
		return parentUuid;
	}

	public void setParentUuid(String parentUuid) {
		this.parentUuid = parentUuid == null ? null : parentUuid.trim();
	}

	public String getBrands() {
		return brands;
	}

	public void setBrands(String brands) {
		this.brands = brands == null ? null : brands.trim();
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes == null ? null : attributes.trim();
	}

	public Integer getLevel_type() {
		return level_type;
	}

	public void setLevel_type(Integer level_type) {
		this.level_type = level_type;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator == null ? null : creator.trim();
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender == null ? null : mender.trim();
	}

	@Override
	public String toString() {
		return "Category [name=" + name + ", full_name=" + full_name + ", parentId=" + parentId + ", parentUuid="
				+ parentUuid + ", brands=" + brands + ", attributes=" + attributes + ", level_type=" + level_type
				+ ", isdeleted=" + isdeleted + ", createtime=" + createtime + ", creator=" + creator + ", updatetime="
				+ updatetime + ", mender=" + mender + ", icon=" + icon + "]";
	}
}
